package com.yujn.order.feign;

import com.yujn.common.bean.Result;
import com.yujn.order.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "study-mall-user", path = "user")
public interface UserFeign {

    @GetMapping("/{id}")
    Result<User> getUserById(@PathVariable("id") String id);

}
